package com.narsimha.model;

public class DimensionValue implements Comparable<DimensionValue>{
	private int key;
	private String name;
	public int getKey() {
		return key;
	}
	public void setKey(int key) {
		this.key = key;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isEquals(DimensionValue o) {
		if(o!= null)
			return o.key == this.key;
		else
			return false;
	}
	@Override
	public int compareTo(DimensionValue o) {
		return this.key - o.key;
	}
}
